package taskDetail;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

@Service
public class TaskDetailServiceImpl extends ServiceImpl<TaskDetailMapper, TaskDetail> implements ITaskDetailService {
    @Autowired
    private TaskDetailMapper taskDetailMapper;

    @Override
    @Transactional
    public IPage<TaskDetail> list(String gxProcess, String donePerson, String material, String startTime, String endTime, String taskCode, String userName, Integer pageNo, Integer pageSize)
    {

        Page page = new Page(pageNo, pageSize);
//        page.setCountId("");
//        page.setSearchCount(false);//关闭查询总数数
        IPage<TaskDetail> result = taskDetailMapper.list(page, gxProcess, donePerson, material, startTime, endTime, taskCode, userName);
        return result;
    }
}
